package com.zx.cloud.persistence;

import java.util.List;
import java.util.Map;

import com.zx.cloud.MyBatisRepository;
import com.zx.cloud.domain.Resource;

@MyBatisRepository
public interface ExtResourceMapper {

	List<Resource> findMenusByUserId(Map<String,Object> params);
	
	List<Resource> findPermissionsByUserId(Map<String,Object> params);

	List<Resource> findPermissionsByUserIdToString(Map<String, Object> params);

	int insertRoleResource(List<Map<Long, Long>> params);
	
	List<String> findRoleResource(Map<String, Object> params);

	void removeByRoleId(Map<String,String> params);
	
}